package com.forcht.common.enumeration;

/**
 * Created by forcht on 2018/4/11.
 */
public enum  ResponseCode {

    LOGIN_SUCCESS(1,"登录成功"),
    LOGIN_FAIL(2,"登录失败"),
    LOGOUT_SUCCESS(3,"下线成功"),
    FRIEND_LOGIN(4,"好友上线通知"),
    FRIEND_LOGOUT(5,"好友下线通知"),
    CHAT_ONE(6,"单聊"),
    CHAT_MORE(7,"群发");
    private int code;
    private String description;

    ResponseCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
